package com.kaka.bus.engine.home.main;

import android.app.Activity;

import com.kaka.bus.bean.DrainProductBean;
import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.Rolling;
import com.kaka.bus.bean.Status;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

import java.util.List;

/**
 * Created by zhangqi on 2016/10/14.
 * e-mail : ${email}
 * desc :
 */

public interface MainContract {

    interface View extends BaseView {
        void onError();

        void commitContactSuccess(HttpWrapper<String> bean);

        void getBorrowFaild();

        void getRollingSuccess(HttpWrapper<Rolling> rolling);


        void checkBpmSuccess(HttpWrapper<Status> s);

        void nodeOk(HttpWrapper<String> s);

        void uploadContactFaild();

        void uploadContactSuccess(HttpWrapper<String> s);

        void hotProSyccess(HttpWrapper<List<DrainProductBean>> s);

        void onResultStart(HttpWrapper<List<DrainProductBean>> o);

        void onResultLoadMore(HttpWrapper<List<DrainProductBean>> o);

        void refresh(HttpWrapper<List<DrainProductBean>> data);

        void onStartError();
    }

    interface Presenter extends BasePresenter<View> {


        void router(Activity activity);

        void commitContact(String userId, String json);

        void getRolling(String userId, String token, String platform, String version);

        void checkBpm(String userId, String token);

        void uploadContact(String userId, String json);

        void getHotPro(String userId, int page, int pageSize);

        void loadMore(String userId, int page, int pageSize);

        void chargeApply(String event, String productId, String bannerId, String device, String perId, String chargeProductId);
    }

}
